import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false

Vue.prototype.baseUrl = 'https://www.fastmock.site/mock/9622fedc10c4460c973964c75742c970/bda01';

Vue.prototype.globalUser = 'GlobalUser';

Vue.prototype.setGlobalUser = function(user) {
	uni.setStorageSync(this.globalUser, user);
};

Vue.prototype.getGlobalUser = function() {
	return uni.getStorageSync(this.globalUser);
}

Vue.prototype.clearGlobalUser = function() {
	uni.clearStorageSync(this.globalUser);
}


App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif